.class public Lcom/brixd/niceapp/application/NiceAppApplication;
.super Lcom/baidu/frontia/FrontiaApplication;
.source "NiceAppApplication.java"


# static fields
.field private static mAppBaseDirName:Ljava/lang/String;

.field private static mIsUseDiskCache:Z

.field private static myApplication:Lcom/brixd/niceapp/application/NiceAppApplication;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/baidu/frontia/FrontiaApplication;-><init>()V

    return-void
.end method

.method private copyIconImageToExternalCard(Ljava/lang/String;)V
    .registers 11
    .param p1, "iconName"    # Ljava/lang/String;

    .prologue
    .line 106
    const/4 v2, 0x0

    .line 107
    .local v2, "is":Ljava/io/InputStream;
    const/4 v4, 0x0

    .line 109
    .local v4, "os":Ljava/io/OutputStream;
    :try_start_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v8, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    sget-object v8, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "zuimei_share_icon"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 110
    .local v6, "outFileName":Ljava/lang/String;
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 111
    .local v1, "file":Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->exists()Z
    :try_end_25
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_25} :catch_81
    .catchall {:try_start_2 .. :try_end_25} :catchall_70

    move-result v7

    if-eqz v7, :cond_33

    .line 126
    if-eqz v2, :cond_2d

    .line 127
    :try_start_2a
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    .line 128
    :cond_2d
    if-eqz v4, :cond_32

    .line 129
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
    :try_end_32
    .catch Ljava/io/IOException; {:try_start_2a .. :try_end_32} :catch_83

    .line 134
    .end local v1    # "file":Ljava/io/File;
    .end local v6    # "outFileName":Ljava/lang/String;
    :cond_32
    :goto_32
    return-void

    .line 114
    .restart local v1    # "file":Ljava/io/File;
    .restart local v6    # "outFileName":Ljava/lang/String;
    :cond_33
    :try_start_33
    new-instance v5, Ljava/io/FileOutputStream;

    invoke-direct {v5, v6}, Ljava/io/FileOutputStream;-><init>(Ljava/lang/String;)V
    :try_end_38
    .catch Ljava/lang/Exception; {:try_start_33 .. :try_end_38} :catch_81
    .catchall {:try_start_33 .. :try_end_38} :catchall_70

    .line 115
    .end local v4    # "os":Ljava/io/OutputStream;
    .local v5, "os":Ljava/io/OutputStream;
    :try_start_38
    invoke-virtual {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v7

    invoke-virtual {v7, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v2

    .line 116
    const/16 v7, 0x400

    new-array v0, v7, [B

    .line 118
    .local v0, "buffer":[B
    :goto_44
    invoke-virtual {v2, v0}, Ljava/io/InputStream;->read([B)I

    move-result v3

    .local v3, "length":I
    if-lez v3, :cond_5e

    .line 119
    const/4 v7, 0x0

    invoke-virtual {v5, v0, v7, v3}, Ljava/io/OutputStream;->write([BII)V
    :try_end_4e
    .catch Ljava/lang/Exception; {:try_start_38 .. :try_end_4e} :catch_4f
    .catchall {:try_start_38 .. :try_end_4e} :catchall_7e

    goto :goto_44

    .line 123
    .end local v0    # "buffer":[B
    .end local v3    # "length":I
    :catch_4f
    move-exception v7

    move-object v4, v5

    .line 126
    .end local v1    # "file":Ljava/io/File;
    .end local v5    # "os":Ljava/io/OutputStream;
    .end local v6    # "outFileName":Ljava/lang/String;
    .restart local v4    # "os":Ljava/io/OutputStream;
    :goto_51
    if-eqz v2, :cond_56

    .line 127
    :try_start_53
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    .line 128
    :cond_56
    if-eqz v4, :cond_32

    .line 129
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
    :try_end_5b
    .catch Ljava/io/IOException; {:try_start_53 .. :try_end_5b} :catch_5c

    goto :goto_32

    .line 130
    :catch_5c
    move-exception v7

    goto :goto_32

    .line 121
    .end local v4    # "os":Ljava/io/OutputStream;
    .restart local v0    # "buffer":[B
    .restart local v1    # "file":Ljava/io/File;
    .restart local v3    # "length":I
    .restart local v5    # "os":Ljava/io/OutputStream;
    .restart local v6    # "outFileName":Ljava/lang/String;
    :cond_5e
    :try_start_5e
    invoke-virtual {v5}, Ljava/io/OutputStream;->flush()V
    :try_end_61
    .catch Ljava/lang/Exception; {:try_start_5e .. :try_end_61} :catch_4f
    .catchall {:try_start_5e .. :try_end_61} :catchall_7e

    .line 126
    if-eqz v2, :cond_66

    .line 127
    :try_start_63
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    .line 128
    :cond_66
    if-eqz v5, :cond_6b

    .line 129
    invoke-virtual {v5}, Ljava/io/OutputStream;->close()V
    :try_end_6b
    .catch Ljava/io/IOException; {:try_start_63 .. :try_end_6b} :catch_6d

    :cond_6b
    move-object v4, v5

    .line 131
    .end local v5    # "os":Ljava/io/OutputStream;
    .restart local v4    # "os":Ljava/io/OutputStream;
    goto :goto_32

    .line 130
    .end local v4    # "os":Ljava/io/OutputStream;
    .restart local v5    # "os":Ljava/io/OutputStream;
    :catch_6d
    move-exception v7

    move-object v4, v5

    .line 132
    .end local v5    # "os":Ljava/io/OutputStream;
    .restart local v4    # "os":Ljava/io/OutputStream;
    goto :goto_32

    .line 125
    .end local v0    # "buffer":[B
    .end local v1    # "file":Ljava/io/File;
    .end local v3    # "length":I
    .end local v6    # "outFileName":Ljava/lang/String;
    :catchall_70
    move-exception v7

    .line 126
    :goto_71
    if-eqz v2, :cond_76

    .line 127
    :try_start_73
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    .line 128
    :cond_76
    if-eqz v4, :cond_7b

    .line 129
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
    :try_end_7b
    .catch Ljava/io/IOException; {:try_start_73 .. :try_end_7b} :catch_7c

    .line 131
    :cond_7b
    :goto_7b
    throw v7

    .line 130
    :catch_7c
    move-exception v8

    goto :goto_7b

    .line 125
    .end local v4    # "os":Ljava/io/OutputStream;
    .restart local v1    # "file":Ljava/io/File;
    .restart local v5    # "os":Ljava/io/OutputStream;
    .restart local v6    # "outFileName":Ljava/lang/String;
    :catchall_7e
    move-exception v7

    move-object v4, v5

    .end local v5    # "os":Ljava/io/OutputStream;
    .restart local v4    # "os":Ljava/io/OutputStream;
    goto :goto_71

    .line 123
    .end local v1    # "file":Ljava/io/File;
    .end local v6    # "outFileName":Ljava/lang/String;
    :catch_81
    move-exception v7

    goto :goto_51

    .line 130
    .restart local v1    # "file":Ljava/io/File;
    .restart local v6    # "outFileName":Ljava/lang/String;
    :catch_83
    move-exception v7

    goto :goto_32
.end method

.method public static getAppBaseDirName()Ljava/lang/String;
    .registers 1

    .prologue
    .line 63
    sget-object v0, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    return-object v0
.end method

.method public static getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;
    .registers 1

    .prologue
    .line 59
    sget-object v0, Lcom/brixd/niceapp/application/NiceAppApplication;->myApplication:Lcom/brixd/niceapp/application/NiceAppApplication;

    return-object v0
.end method

.method private initFolders()V
    .registers 6

    .prologue
    .line 137
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p0}, Lcom/zuiapps/suite/utils/file/IOUtil;->getBaseLocalLocation(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "zuimei"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 140
    .local v0, "baseCacheLocation":Ljava/lang/String;
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 142
    .local v1, "dir":Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_2b

    .line 143
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    .line 146
    :cond_2b
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_2c
    const/4 v3, 0x2

    if-ge v2, v3, :cond_59

    .line 147
    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result v3

    if-nez v3, :cond_59

    .line 148
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "-niceapps"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 149
    new-instance v1, Ljava/io/File;

    .end local v1    # "dir":Ljava/io/File;
    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 150
    .restart local v1    # "dir":Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_56

    .line 151
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    .line 146
    :cond_56
    add-int/lit8 v2, v2, 0x1

    goto :goto_2c

    .line 158
    :cond_59
    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result v3

    sput-boolean v3, Lcom/brixd/niceapp/application/NiceAppApplication;->mIsUseDiskCache:Z

    .line 159
    sput-object v0, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    .line 160
    invoke-direct {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->initImageIconFolder()V

    .line 161
    return-void
.end method

.method private initImageIconFolder()V
    .registers 4

    .prologue
    .line 164
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/constant/Config;->IMAGE_APP_CACHE_DIR_NAME:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 165
    .local v0, "dir":Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_29

    .line 166
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    .line 168
    :cond_29
    return-void
.end method

.method public static initImageLoader(Landroid/content/Context;)V
    .registers 9
    .param p0, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    const/4 v6, 0x3

    const/4 v5, 0x1

    .line 67
    new-instance v4, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisk(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v3

    .line 69
    .local v3, "options":Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    new-instance v0, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v5, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    sget-object v5, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "images"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 72
    .local v0, "cacheDir":Ljava/io/File;
    new-instance v2, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    invoke-direct {v2, p0}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;-><init>(Landroid/content/Context;)V

    .line 86
    .local v2, "configBuilder":Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;
    invoke-virtual {v2, v6}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->threadPriority(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v4

    .line 87
    invoke-virtual {v4, v3}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->defaultDisplayImageOptions(Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v4

    .line 88
    invoke-virtual {v4}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->denyCacheImageMultipleSizesInMemory()Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v4

    new-instance v5, Lcom/nostra13/universalimageloader/cache/memory/impl/WeakMemoryCache;

    invoke-direct {v5}, Lcom/nostra13/universalimageloader/cache/memory/impl/WeakMemoryCache;-><init>()V

    .line 89
    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->memoryCache(Lcom/nostra13/universalimageloader/cache/memory/MemoryCache;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v4

    sget-object v5, Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;->LIFO:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    .line 91
    invoke-virtual {v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->tasksProcessingOrder(Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v4

    .line 94
    invoke-virtual {v4, v6}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->threadPoolSize(I)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    move-result-object v2

    .line 95
    sget-boolean v4, Lcom/brixd/niceapp/application/NiceAppApplication;->mIsUseDiskCache:Z

    if-eqz v4, :cond_6b

    .line 96
    new-instance v4, Lcom/nostra13/universalimageloader/cache/disc/impl/ext/LruDiscCache;

    new-instance v5, Lcom/nostra13/universalimageloader/cache/disc/naming/Md5FileNameGenerator;

    invoke-direct {v5}, Lcom/nostra13/universalimageloader/cache/disc/naming/Md5FileNameGenerator;-><init>()V

    const-wide/32 v6, 0x3200000

    invoke-direct {v4, v0, v5, v6, v7}, Lcom/nostra13/universalimageloader/cache/disc/impl/ext/LruDiscCache;-><init>(Ljava/io/File;Lcom/nostra13/universalimageloader/cache/disc/naming/FileNameGenerator;J)V

    invoke-virtual {v2, v4}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->diskCache(Lcom/nostra13/universalimageloader/cache/disc/DiskCache;)Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;

    .line 99
    :cond_6b
    invoke-virtual {v2}, Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration$Builder;->build()Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;

    move-result-object v1

    .line 102
    .local v1, "config":Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v4

    invoke-virtual {v4, v1}, Lcom/nostra13/universalimageloader/core/ImageLoader;->init(Lcom/nostra13/universalimageloader/core/ImageLoaderConfiguration;)V

    .line 103
    return-void
.end method


# virtual methods
.method public getImageIconFolderPath()Ljava/lang/String;
    .registers 3

    .prologue
    .line 171
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/brixd/niceapp/application/NiceAppApplication;->mAppBaseDirName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/brixd/niceapp/constant/Config;->IMAGE_APP_CACHE_DIR_NAME:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onCreate()V
    .registers 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0x9
    .end annotation

    .prologue
    .line 40
    invoke-super {p0}, Lcom/baidu/frontia/FrontiaApplication;->onCreate()V

    .line 42
    sput-object p0, Lcom/brixd/niceapp/application/NiceAppApplication;->myApplication:Lcom/brixd/niceapp/application/NiceAppApplication;

    .line 45
    invoke-direct {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->initFolders()V

    .line 47
    :try_start_8
    invoke-virtual {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/application/NiceAppApplication;->initImageLoader(Landroid/content/Context;)V
    :try_end_f
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_f} :catch_20

    .line 52
    :goto_f
    invoke-virtual {p0}, Lcom/brixd/niceapp/application/NiceAppApplication;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcn/sharesdk/framework/ShareSDK;->initSDK(Landroid/content/Context;)V

    .line 53
    invoke-static {p0}, Lcom/brixd/niceapp/service/AppService;->initialize(Landroid/content/Context;)V

    .line 54
    invoke-static {p0}, Lcom/brixd/niceapp/service/UserService;->initialize(Landroid/content/Context;)V

    .line 55
    invoke-static {p0}, Lcom/brixd/niceapp/service/StatisticsService;->initialize(Landroid/content/Context;)V

    .line 56
    return-void

    .line 48
    :catch_20
    move-exception v0

    .line 49
    .local v0, "e":Ljava/io/IOException;
    const-string v1, "error_init_image"

    const-string v2, "application"

    invoke-static {p0, v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_f
.end method

.method public onTerminate()V
    .registers 3

    .prologue
    .line 176
    invoke-super {p0}, Lcom/baidu/frontia/FrontiaApplication;->onTerminate()V

    .line 177
    const-class v0, Lcom/brixd/niceapp/application/NiceAppApplication;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "The application terminated"

    invoke-static {v0, v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 178
    return-void
.end method
